package com.czxy.service;

import com.czxy.dao.CityMapper;
import com.czxy.domain.City;
import com.czxy.utils.MyBatisUtils;

import java.util.List;

public class CityService {


    public List<City> findPid(Integer pid){

        CityMapper mapper = MyBatisUtils.getMapper(CityMapper.class);

        List<City> cities = mapper.findPid(pid);

        MyBatisUtils.close();

        return cities;

    }
}
